package cn.wolfcode.plus.service.impl;

import cn.wolfcode.plus.domain.Employee;
import cn.wolfcode.plus.mapper.EmployeeMapper;
import cn.wolfcode.plus.service.IEmployeeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements IEmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> getListContainDept(Employee employee) {

        return employeeMapper.selectListContainDept(employee);
    }

}
